package com.xiaodai.miaosha.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaodai.miaosha.entity.Orders;
import com.xiaodai.miaosha.entity.Msuser;
import com.xiaodai.miaosha.vo.GoodsVo;
import com.xiaodai.miaosha.vo.OrderDeatilVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaodai
 * @since 2022-04-12
 */
public interface IOrdersService extends IService<Orders> {
    Orders seckill(Msuser Msuser, GoodsVo goods,String addressId);

    OrderDeatilVo detail(Long orderId);

    String getPath(Msuser Msuser, Long goodsId);

    Boolean checkPath(Msuser Msuser, Long goodsId, String path);

    Boolean checkCaptcha(Msuser Msuser, Long goodsId, String captcha);

    Long getResult(Msuser msuser, Long goodsId, String addressId);
}
